Holds information about a tab in the window. More...
Public Member Functions | |
| Tab () | |
| virtual | ~Tab () |
| nkMemory::StringView | getLabel () const |
| Window * | getAssociatedWin () const |
| int | getId () const |
| TabWindow * | getParentWindow () const |
| virtual void | setLabel (const nkMemory::StringView &label, bool autoUpdate=true) |
| void | setAssociatedWin (Window *win) |
| void | setId (int id) |
| void | setParentWindow (TabWindow *parent) |
Holds information about a tab in the window.
| nkWinUi::TabWindow::Tab::Tab | ( | ) |
Constructor.
|
virtual |
Destructor.
| nkMemory::StringView nkWinUi::TabWindow::Tab::getLabel | ( | ) | const |
| Window* nkWinUi::TabWindow::Tab::getAssociatedWin | ( | ) | const |
| int nkWinUi::TabWindow::Tab::getId | ( | ) | const |
| TabWindow* nkWinUi::TabWindow::Tab::getParentWindow | ( | ) | const |
|
virtual |
Sets the tab label.
| label | The label to set. |
| autoUpdate | If the tab should visually be updated. |
| void nkWinUi::TabWindow::Tab::setAssociatedWin | ( | Window * | win | ) |
Sets the associated window in the tab.
| win | The window to associate. |
| void nkWinUi::TabWindow::Tab::setId | ( | int | id | ) |
Sets the id of the tab.
| id | The id to link. |
| void nkWinUi::TabWindow::Tab::setParentWindow | ( | TabWindow * | parent | ) |
Sets the parent window of the tab.
| parent | The parent tab window. |